﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cinemax.DAO;

namespace Cinemax.UserControls
{
    public partial class wuc_add_schedule : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["mphim"] != null && Request.QueryString["mphong"] != null && Request.QueryString["tgbd"] != null && Request.QueryString["tgkt"] != null && Request.QueryString["slv"] != null)
            {
                int mphim = int.Parse(Request.QueryString["mphim"]);
                int mphong = int.Parse(Request.QueryString["mphong"]);
                DateTime tgbd = DateTime.Parse(Request.QueryString["tgbd"]);
                DateTime tgkt = DateTime.Parse(Request.QueryString["tgkt"]);
                int slv = int.Parse(Request.QueryString["slv"]);
                SuatChieuDAO.insertSuatChieu(mphim, mphong, tgbd, tgkt, slv);
            }
        }
    }
}